package com.yugao.fintech.antelope.pay.payment.channel;

import com.alibaba.fastjson2.JSONObject;
import com.yugao.fintech.antelope.pay.constant.IfCodeEnum;
import com.yugao.fintech.antelope.pay.payment.model.bo.MchAppConfigContext;

/**
 * 301方式获取渠道侧用户ID， 如微信openId 支付宝的userId等
 *
 * @author shneguangyang
 */
public interface IChannelUserService {

    /**
     * 获取到接口code
     */
    IfCodeEnum getIfCode();

    /**
     * 获取重定向地址
     */
    String buildUserRedirectUrl(String callbackUrlEncode, MchAppConfigContext mchAppConfigContext);

    /**
     * 获取渠道用户ID
     */
    String getChannelUserId(JSONObject reqParams, MchAppConfigContext mchAppConfigContext);
}
